package com.bjx.auth.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
/**
 * @desc: 账号密码登录
 * @author: liushuai
 * @date: 2022/7/3 14:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoginVO {

    @Schema(title = "username",description = "登录用户名")
    @NotBlank(message = "登录用户名不能为空")
    @Size(min = 1,max = 32,message = "登录用户名长度为1到32个字符")
    private String username;

    @Schema(title = "password",description = "密码")
    @Size(min = 1,max = 64,message = "密码长度为1到32个字符")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(title = "code",description = "验证码")
    @Size(min = 1,max = 4,message = "验证码长度为1到4个字符")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @Schema(title = "code",description = "UUID")
    @NotBlank(message = "UUID不能为空")
    @Size(min = 1,max = 64,message = "UUID长度为1到64个字符")
    private String uuid;
}
